<div>
    <br>
    <ol class="breadcrumb">
        <li class="active"><span class="glyphicon glyphicon-home" style="color:#23527c"></span>&nbsp;<mainpage></mainpage></li>
        <li class="active">运维工作台 / 参数配置管理 / 接口参数管理 / 错误码管理</li>
    </ol>

    <ul class="nav nav-tabs marT15">
      <li role="presentation" ><a href="#/errorCodemManagement" style="color: #555;">错误码管理</a></li>
      <li role="presentation"><a href="#/errorCodeImport" style="color:#555;">错误码导入</a></li>
      <li role="presentation" class="active"><a href="#/errorCodeImportDetail" style="color: #555;">错误码导入明细</a></li>
</ul> 

        <div class="marB15 clearfix">
        <form action="inputLine/out-excel" method="post" id="form" class="form-inline">
            <div class=" left marR10 marT15" style="margin-left: 0px">
               <span class="search-name">时间选择</span>
               <div class="controls">
                     <div class="input-prepend input-group">
                      <input type="text" ng-model="searchData.startDate"  placeholder="" name="startDate" style="display: none;">
                    <input type="text" ng-model="searchData.endDate"   placeholder="" name="endDate" style="display: none;">
                       <span class="input-group-addon"><i class="glyphicon glyphicon-calendar fa fa-calendar"></i></span><input type="text" readonly style="width: 155px"  id="erroDate" class="form-control"  /> 
                       <span class="input-group-addon" ng-click='clearTime()'>清空</span>
                     </div>
              </div>
            </div>
            <div class="left marT15 marR10">
              	<input name="fileType" type="text" value="错误码" style="display: none;" />
                <span class="search-name">文件名</span>
                <input type="text" class="form-control1" name="fileName" placeholder="" 
                ng-keyup='search($event)'
                ng-model="searchData.fileName">           
            </div>
            <div class="left marT15 marR10">
              
                <span class="search-name">导入人</span>
                <input type="text" class="form-control1" placeholder="" 
                ng-keyup='search($event)'
                ng-model="searchData.userName" name="userName">
              
            </div>
            <div class="left marR10 marT15">
                <span class="search-name">状态</span>
                <select class="form-control1" ng-model="searchData.status" name="status">
                    <option value="">全部</option>
                    <option value="1">成功</option>
                    <option value="0">失败</option>
                </select>
            </div>
            <input type="text" style="display: none" ng-model="searchData.startDate" name="" value="" placeholder="">
            <input type="text" style="display: none" ng-model="searchData.endDate" name="" value="" placeholder="">                 
          </form>
            <a href="javascript:;" class=" btn btn-primary btn-sm left marR10 marT15" id="search" ng-click='search()'><span class="glyphicon glyphicon-search"></span></a>
            <div class="right marT15" style="position:relative">
              <button class="btn btn-sm btn-primary" ng-click='outExcel()'><img style="width:25px; height:20px;" src="img/excel.png">导出表格<span ng-style='loadStyle' class="outExcelLoad"><img  src="img/load.gif"></span>
              </button>
            </div>
        </div>
    

     <div class="table-box">

            <table class="table table-bordered table-striped text-center bg-info">
                <thead >
                <tr class="info">
                    <th class="text-center">序号</th>
                    <th class="text-center">日期</th>
                    <th class="text-center">导入文件名</th>
                    <th class="text-center">导入状态</th>
                    <th class="text-center">记录行号</th>
                    <th class="text-center">记录行内容</th>
                    <th class="text-center">导入操作人</th>
                    <th class="text-center">操作时间</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="Item in result"> 
                <td>{{ $index+1 }}</td>
                <td class="w115">{{Item.insertTime}}</td>
                <td class="w115">{{Item.fileName}}</td>
                <td class="w85">{{Item.statusStr}}</td>
                <td class="w85">{{Item.lineNo}}</td>      
                <td class="w115">{{Item.lineContent}}</td> 
                <td class="w115">{{Item.userName}}</td>
                <td class="w115">{{Item.uptimeDate}}</td>
                </tr>
                </tbody>
                <!-- <tfoot>
                  <tr>
                   <td><a href="javascript:;" class="glyphicon glyphicon-plus" data-toggle="modal" data-target="#add1"></a></td>
                   <td></td>
                   <td></td>
                   <td></td>
                   <td></td>
                   <td></td>
                   <td></td>
                   <td></td>
                  </tr>
               </tfoot> -->
            </table>
      </div>


           <page></page>
</div>
<!-- 文件导入程序弹框 -->
<div class="modal fade" id="import" tabindex="-1" role="dialog" aria-labelledby="import">
    <div class="modal-dialog" role="document">
        <div class="modal-content" style="width:620px">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="">文件导入</h4>
            </div>
            <div class="modal-body">
           <div class="row marB15"> 
               <div class="col-xs-6">
                <label class="left"><span>文件类型</span></label>
                    <select class="form-control line4 right" >
                        <option value="txt">txt</option>
                        <option value="csv">csv</option>
                        <option value="xls">xls</option>
                    </select>
                </div>
               <div class="col-xs-6">
                   <label class="left">文件内容格式：来源类型|错误码类型|错误码|对应短信平台错误码|错误码描述</span></label>
               </span>
                </div>
           </div>
            <div class="row marB15"> 
               <span class="col-xs-6">
                   <label class="left"><span>选择上传的文件</span></label>
                    <input type="file" class="form-control line4 right" ng-model="data.loginSvrUser"/>
               </span>
               <span class="col-xs-6">
                   <label class="left"><span>说明：上传文件无文件头，每行一条记录。</span></label>
               </span>
           </div>
        </div>
       
        <div class="modal-footer">
            <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary btn-sm" ng-click="">上传</button>
        </div>
        </div>
    </div>
</div>

<!-- 审核 -->
<div class="modal fade" id="audit" tabindex="-1" role="dialog" aria-labelledby="audit">
    <div class="modal-dialog" role="document">
        <div class="modal-content" style="width:620px">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="">审核</h4>
            </div>
            <div class="modal-body">
           <div class="row marB15"> 
               <div class="col-xs-12">
                <label class="left"><span>审核结果</span></label>
                    <select class="form-control" ng-model="data.statusStr">
                        <option value="审核通过">审核通过</option>
                        <option value="审核不通过">审核不通过</option>
                    </select>
                </div>
           </div>
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary btn-sm" ng-click="">审核</button>
        </div>
        </div>
    </div>
</div>
<!--修改程序结束-->
<!-- 参数添加结束 -->
<!-- 提示框 -->
<div class="modal fade" id="delete">  
  <div class="modal-dialog">  
    <div class="modal-content message_align">  
      <div class="modal-header">  
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>  
        <h4 class="modal-title">提示信息</h4>  
      </div>  
      <div class="modal-body">  
        <p>您确认删除吗？</p>  
      </div>  
      <div class="modal-footer">  
         <input type="hidden" id="url"/>  
         <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>  
         <a  onclick="urlSubmit()" class="btn btn-primary" data-dismiss="modal">确定</a>  
      </div>  
    </div><!-- /.modal-content -->  
  </div><!-- /.modal-dialog -->  
</div><!-- /.modal -->                         
<!-- 提示框结束 -->
<!-- 加载框 -->
  <span class='loaded' ng-show='loaded'><img  src="img/load.gif"></span>
<!-- 加载框 完成-->